package com.jaret.elk.elasticsearch;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

/**
 * @author jaret
 * @date 2021/7/18 23:25
 * @description
 */
@Data
@Component
@ConfigurationProperties(prefix = "elastic.config")
public class ElasticConfig {

    private String protocol;
    private String ip;
    private int port;
    private String username;
    private String password;
    private String index;

}
